import request from '@/utils/request.ts'

// 登录接口
export const userLoginService = (loginData:any)=>{
    const params = new URLSearchParams()
    for(const key in loginData){
        params.append(key,loginData[key])
    }
    return request.post('/user/login',params)
}
//获取用户详细信息
export const userInfoService = ()=>{
    return request.get('/user/userInfo')
}

export const userGetAllUsersInfos = () =>{
    return request.get('/user/all')
}

